package dto

import "go-admin/common/dto"

type SysAlarmGetPageReq struct {
	dto.Pagination `search:"-"`
	Name           string `form:"name"  search:"type:contains;column:name;table:sys_alarm"`
	DeviceId       string `form:"keywords"  search:"type:contains;column:device_id;table:sys_alarm"`
	AlarmPriority  int    `form:"alarmPriority"  search:"type:exact;column:alarm_priority;table:sys_alarm"`
	AlarmMethod    string `form:"alarmMethod"  search:"type:exact;column:alarm_method;table:sys_alarm"`
	BeginTime      string `form:"beginTime" search:"type:gte;column:alarm_time;table:sys_alarm"`
	EndTime        string `form:"endTime" search:"type:lte;column:alarm_time;table:sys_alarm"`
}

func (m *SysAlarmGetPageReq) GetNeedSearch() interface{} {
	return *m
}
